<div class="error"><?php echo $msg ?></div>
<script>
 $(".error").fadeOut(5000);
</script>
